# Add Anniversary to Calendar
(13 actions, 16 KB)
0 DataJar > GetValueIntent »
keyPath
:
My Data
1 Get Dates from
[0 Value
as Dictionary.Anniversary with Yi
]
➔ Anniversary with Yi
»
2
6
2 Format Date
[1 Anniversary with Yi]
»
3
5
DateFormatStyle
:
Custom
DateFormat
:
MMM dd
3 Date
Specified Date
➔ Anniversary This Year
»
5
6
10
DateActionDate
:
[2 Formatted Date]
,
[CurrentDate
{"Date Style":"Custom","WFDateFormat":"yyyy","WFISO8601IncludeTime":false}
]
4 Number
7
»
5
8
5 If
[3 Anniversary This Year]
is in the next
ConditionalActionString
[2 Formatted Date]
Duration
[4 Number]
days
6 Get Time Between
[1 Anniversary with Yi]
and
[3 Anniversary This Year]
in
Years
»
7 Text »
8
10
👩🏻❤️👨🏻
[6 Time Between Dates]
週年交往紀念日
8 Find Calendar Events All Calendar Events where »
ContentItemFilter
:
• All the following are true Start Date is in the next
[4 Number]
days Calendar is Yi & Ming's Memory Dividends Calendar Title is
[7 Text]
9 If
[8 Calendar Events]
does not have any value
10 Add New Event
[7 Text]
from
[3 Anniversary This Year]
to
[3 Anniversary This Year]
CalendarDescriptor
:
{ "Identifier": "7807958B-93BE-41BB-BB2E-19DAB75CC92E", "RGBAValue": 4280838399, "Title": "Yi & Ming's Memory Dividends Calendar", "IsAllCalendar": false }
CalendarItemAllDay
:
true
CalendarItemCalendar
:
Yi & Ming's Memory Dividends Calendar
ShowWhenRun
:
false
11 End If
12 End If ▵
5